'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    //登录
    router.post('/api/login',controller.user.login);
    //注册
    router.post('/api/registry',controller.user.registry);
    //获取菜单
    router.get('/api/list',controller.user.list);
    //修改
    router.put('/api/update',controller.user.update);
    //搜索
    router.get('/api/search',controller.list.search);
    //修改密码
    router.put('/api/editPwd',controller.user.editPwd);
    //修改个人信息
    //update userlist set username=?,age=? where id=?
};